package richbar.com.richbar.bean;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2018/12/14.
 */

public class OrderBean {


    /**
     * code : 200
     * msg : 请求成功
     * data : {"orderid":"41","payOption":{"appid":"wxede2d453578ac8be","partnerid":"1521374851","prepayid":"wx241354367282757e504af88e2315562455","timestamp":"1545630876","noncestr":"sGrgEFLbiMUVnXst","package":"Sign=WXPay","sign":"1DCF2891C5246618EAB58E8A627A3FCE"},"error":0}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * orderid : 41
         * payOption : {"appid":"wxede2d453578ac8be","partnerid":"1521374851","prepayid":"wx241354367282757e504af88e2315562455","timestamp":"1545630876","noncestr":"sGrgEFLbiMUVnXst","package":"Sign=WXPay","sign":"1DCF2891C5246618EAB58E8A627A3FCE"}
         * error : 0
         */

        private String orderid;
        private PayOptionBean payOption;
        private int error;

        public String getOrderid() {
            return orderid;
        }

        public void setOrderid(String orderid) {
            this.orderid = orderid;
        }

        public PayOptionBean getPayOption() {
            return payOption;
        }

        public void setPayOption(PayOptionBean payOption) {
            this.payOption = payOption;
        }

        public int getError() {
            return error;
        }

        public void setError(int error) {
            this.error = error;
        }

        public static class PayOptionBean {
            /**
             * appid : wxede2d453578ac8be
             * partnerid : 1521374851
             * prepayid : wx241354367282757e504af88e2315562455
             * timestamp : 1545630876
             * noncestr : sGrgEFLbiMUVnXst
             * package : Sign=WXPay
             * sign : 1DCF2891C5246618EAB58E8A627A3FCE
             */

            private String appid;
            private String partnerid;
            private String prepayid;
            private String timestamp;
            private String noncestr;
            @SerializedName("package")
            private String packageX;
            private String sign;

            public String getAppid() {
                return appid;
            }

            public void setAppid(String appid) {
                this.appid = appid;
            }

            public String getPartnerid() {
                return partnerid;
            }

            public void setPartnerid(String partnerid) {
                this.partnerid = partnerid;
            }

            public String getPrepayid() {
                return prepayid;
            }

            public void setPrepayid(String prepayid) {
                this.prepayid = prepayid;
            }

            public String getTimestamp() {
                return timestamp;
            }

            public void setTimestamp(String timestamp) {
                this.timestamp = timestamp;
            }

            public String getNoncestr() {
                return noncestr;
            }

            public void setNoncestr(String noncestr) {
                this.noncestr = noncestr;
            }

            public String getPackageX() {
                return packageX;
            }

            public void setPackageX(String packageX) {
                this.packageX = packageX;
            }

            public String getSign() {
                return sign;
            }

            public void setSign(String sign) {
                this.sign = sign;
            }
        }
    }
}
